<!DOCTYPE>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>展示所有</title>
</head>
<body>
<a th:href="@{/goAdd}">添加用户</a>
<table border="1px">
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
        <td>地址</td>
        <td>生日</td>
        <td>操作</td>
    </tr>
    <tr th:each="u : ${list}">
        <td th:text="${u.id}"></td>
        <td th:text="${u.name}"></td>
        <td th:text="${u.sex}"></td>
        <td th:text="${u.age}"></td>
        <td th:text="${u.address}"></td>
        <td th:text="${#dates.format(u.birthday,'yyyy-MM-dd')}"></td>
        <td>
            <a th:href="@{/findById(id=${u.id})}">修改</a>
            <a th:href="@{/delete(id=${u.id})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>